<html>
<body>
Reports usages of <code>Process.waitFor()</code> and <code>Process.onExit()</code> in coroutine context.
Using these methods in coroutine context is forbidden.

<p>Use <code>com.intellij.util.io.awaitExit()</code> instead.</p>

<p>Example:</p>
<pre><code lang="kotlin">
suspend fun doSomething(process: Process) {
  val exitCode = process.waitFor() // bad
  // ...
}

suspend fun doSomething(process: Process) {
  val exitCode = process.awaitExit() // good
  // ...
}
</code></pre>

<!-- tooltip end -->
<p><small>New in 2023.3</small>
</body>
</html>
